﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>访问开放街道图</title>
    <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/esri/css/esri.css">
    <style>
        html, body, #mapDiv {
            padding: 0;
            margin: 0;
            height: 100%;
        }
        
        #mapDiv_osmLayer img {
        }
    </style>
    <script src="http://js.arcgis.com/3.9/"></script>
    <script>        
        require(["esri/map", "esri/layers/OpenStreetMapLayer", "dojo/domReady!"], function (Map, OpenStreetMapLayer) {
            // 以下是创建地图与加入底图的代码
            var map = new Map("mapDiv");
            var osm = new OpenStreetMapLayer({
            	id: 'osmLayer'
            });
            map.addLayer(osm);
        });
    </script>
</head>
<body class="tundra">
    <div id="mapDiv"></div>
</body>
</html>
